package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单明细对象 t_order_details
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
public class TOrderDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String dishName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String dishImage;

    /** 菜品口味 */
    @Excel(name = "菜品口味")
    private String dishFlavor;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private BigDecimal dishPrice;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;

    /** 商品总价 */
    @Excel(name = "商品总价")
    private BigDecimal totalPrice;

    /** 退款状态 */
    @Excel(name = "退款状态")
    private Long refundStatus;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String refundReason;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public void setDishName(String dishName) 
    {
        this.dishName = dishName;
    }

    public String getDishName() 
    {
        return dishName;
    }

    public void setDishImage(String dishImage) 
    {
        this.dishImage = dishImage;
    }

    public String getDishImage() 
    {
        return dishImage;
    }

    public void setDishFlavor(String dishFlavor) 
    {
        this.dishFlavor = dishFlavor;
    }

    public String getDishFlavor() 
    {
        return dishFlavor;
    }

    public void setDishPrice(BigDecimal dishPrice) 
    {
        this.dishPrice = dishPrice;
    }

    public BigDecimal getDishPrice() 
    {
        return dishPrice;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    public void setRefundStatus(Long refundStatus) 
    {
        this.refundStatus = refundStatus;
    }

    public Long getRefundStatus() 
    {
        return refundStatus;
    }

    public void setRefundReason(String refundReason) 
    {
        this.refundReason = refundReason;
    }

    public String getRefundReason() 
    {
        return refundReason;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("dishId", getDishId())
            .append("dishName", getDishName())
            .append("dishImage", getDishImage())
            .append("dishFlavor", getDishFlavor())
            .append("dishPrice", getDishPrice())
            .append("quantity", getQuantity())
            .append("totalPrice", getTotalPrice())
            .append("refundStatus", getRefundStatus())
            .append("refundReason", getRefundReason())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
